﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Orchard;

namespace RaisingStudio.Trigger.Services
{
    public interface ITriggerService : ISingletonDependency
    {
        void RegisterTrigger(TriggerModel trigger, IOrchardServices orchardServices);
        void RemoveTrigger(TriggerModel trigger, IOrchardServices orchardServices);
        void EnableTrigger(TriggerModel trigger, IOrchardServices orchardServices);
        void DisableTrigger(TriggerModel trigger, IOrchardServices orchardServices);

        void HandleEvent(string triggerEvent, IOrchardServices orchardServices, dynamic content, dynamic context);
    }
}
